package com.baselibrary.permission.callback;

import com.baselibrary.permission.PermissionsUtils;
import com.baselibrary.utils.ContextUtils;
import com.baselibrary.utils.ToastUtils;

import java.util.ArrayList;

/**
 * @author: 关忆北、
 * @date: 2022/3/11
 * @Des：
 */
public abstract class PermissionsCall {
    public abstract void permissionsPass();

    public void permissionsRefuse(ArrayList<String> strPer) {
        try {
            //避免 getApplicationContext 为空
            ToastUtils.showShort(ContextUtils.getCurApplication(),
                    "请授予【" + PermissionsUtils.getInstance().parsePerName(strPer) + "】权限");
        } catch (Exception e) {
            e.getMessage();
        }
    }
}
